const Mock=require('mockjs')

const houseData=Mock.mock({
    "list|100-200":[{
        "id":"@id",
        "name":"@ctitle(3,6)",
        "area":"@city(true)",
        "price|400-1000":1,
        "status|1":[true,false],
        "img":"@image(100x100,@color)"
    }]
})

const userList=[
    {
        username:'admin',
        id:'zhangsan_01',
        password:'123',
        name:'张三',
        authcodes:['10001','10002','10003','10004','10005','10006']
    },
    {
        username:'user',
        id:'lisi_01',
        password:'123',
        name:'李四',
        authcodes:['10001','10002','10003','10004']
    },
]

module.exports={
    userList,
    houseData
}